package com.yuwen.yuwenRPC.model;

/**
 * @ClassNameRpcResponse
 * @Description TODO
 * @Author钰玟
 * @Date2025/3/29 下午9:12
 * @Version 1.0
 **/

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * rpc响应
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RpcResponse implements Serializable {
    /**
     * 响应数据
     */
    private Object data;
    /**
     * 响应数据类型
     */
    private Class<?> returnType;

    /**
     * 响应信息
     */
    private String message;
    /**
     * 响应异常
     */
    private Exception exception;

}
